﻿using UniMana.Utils.Helper;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using UniMana.Utils.Controls;
using System;
namespace UniMana.Win.Catalogue
{
    public partial class FrmCategories : DevExpress.XtraEditors.XtraForm
    {
        public FrmCategories()
        {
            InitializeComponent();
        }

        private void nbiNation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubNation(), xtcCategoryMain);
        }

        private void nbiCity_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubCity(), xtcCategoryMain);
        }

        private void nbiDistrict_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubDistrict(), xtcCategoryMain);
            /*Lỗi*/
        }

        private void nbiEthinic_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubEthnic(), xtcCategoryMain);
        }

        private void nbiReligion_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubReligion(), xtcCategoryMain);
        }

        private void nbiPolitics_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubPolitics(), xtcCategoryMain);
        }

        private void nbiDepartment_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubDepartment(), xtcCategoryMain);
        }

        private void nbiMajor_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubMajor(), xtcCategoryMain);
            /*Lỗi*/
        }

        private void nbiTrainingType_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubTrainingType(), xtcCategoryMain);
        }

        private void nbiCourse_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubCourse(), xtcCategoryMain);
        }

        private void nbiSchoolYear_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubSchoolYear(), xtcCategoryMain);
        }

        private void nbiTerm_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubTerm(), xtcCategoryMain);
        }

        private void nbiStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubStatus(), xtcCategoryMain);
        }

        private void xtcCategoryMain_CloseButtonClick(object sender, EventArgs e)
        {
            xtcCategoryMain.TabPages.Remove(xtcCategoryMain.SelectedTabPage);
        }

        private void nbiSession_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubSession(), xtcCategoryMain);
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubRoom(), xtcCategoryMain);
        }

        private void nbiCouse_Term_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCategories_SubCourse_SchoolYear_Term(), xtcCategoryMain);
        }

        private void nbiCatalogue_Cost_Type_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            //UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCatalogue_Cost_Type(), xtcCategoryMain);
        }

        private void nbiCatalogue_Cost_Unit_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            //UniMana.Utils.Helper.TabShowFrm.ShowTabbedMdi(new FrmCatalogue_Cost_Unit(), xtcCategoryMain);
        }
    }
}